Skip to content
PostMachine Learning / Lecture

Navie Bayes

2024-10-19
Back to Blog

Navie Bayes ​

Bayesian Classification ​

Let the dataset T be:

T={(x1,y1),(x2,y2),…,(xN,yN)}
  • Each input xi is represented as:xi=(x1,…,xn)
  • Each output yi belongs to a class ck, where k=1,…,K.

The probability of a class ck given input x is calculated as:

P(y=ck∣x)=P(y=ck)P(x∣y=ck)∑kP(y=ck)P(x∣y=ck)P(y=ck|x)∝P(y=ck)P(x|y=ck)P(y=ck|x)∝P(y=ck)∏jP(xj|y=ck)